package cn.tedu.review;

public class TestAnimal {
    public static void main(String[] args) {
        Pigeon p=new Pigeon();
        System.out.println(p.lEG_NUMBERS);//2
        System.out.println(p.eggNumbers);//0
        p.LayEggs();//2
        p.fly();

        Swallow s=new Swallow();
        System.out.println(s.lEG_NUMBERS);//2
        System.out.println(s.eggNumbers);//6
        s.fly();
        s.LayEggs();
        s.makeNest();

        Ant a=new Ant();
        System.out.println(a.LEG_NUMBERS);
        System.out.println(a.eggNumbers);
        a.fly();
        a.spawn();

        Bee b=new Bee();
        System.out.println(b.LEG_NUMBERS);
        System.out.println(b.eggNumbers);
        b.fly();
        b.spawn();
        b.makeHoney();
    }
}
